<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        function getRandom(min, max) {
            return Math.floor(Math.random() * (max - min + 1)) + min;
        }
        const arr = ['许嵩', '邓紫棋', '毛不易', '解忧邵帅'];
        const index = getRandom(0, arr.length - 1); // 生成随机的index
        console.log(arr[index]);
    </script>
</body>

</html>